<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*, com.study.Guest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JPA Guestbook Web Application Tutorial</title>
</head>
<body>
	<form method="POST" action="GuestServlet">
		Name : <input type="text" name="name" />
		<input type="submit" value="Add" />
	</form>
	
	<hr>
	
	<ol>
	<%
		List<Guest> guests = (List<Guest>)request.getAttribute("guests");
		for(Guest guest : guests) { %>
			<li> <%= guest %> </li> <%
		} 
	%>
	</ol>
	
	<hr>
	
	<iframe src="http://www.objectdb.com/pw.html?web-download" frameborder="0" scrolling="no" width="100%" height="30"></iframe>
</body>
</html>